package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class PrintActivity extends AppCompatActivity {

    private TextView tv_username;
    private TextView tv_password;
    private TextView tv_delect;
    private TextView tv_xiugai;
    private TextView tv_paixu;
    private TextView tv_daozhi;




    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_print);

        tv_username = (TextView) findViewById(R.id.tv_username);
        tv_password = (TextView) findViewById(R.id.tv_password);
        tv_delect = (TextView) findViewById(R.id.tv_delect);
        tv_xiugai = (TextView) findViewById(R.id.tv_xiugai);
        tv_paixu = (TextView) findViewById(R.id.tv_paixu);
        tv_daozhi = (TextView) findViewById(R.id.tv_daozhi);


        Intent intent = getIntent();
        String a = intent.getStringExtra("str1");
        String b = intent.getStringExtra("str2");
        String c = intent.getStringExtra("str3");
        String d = intent.getStringExtra("str4");
        String e = intent.getStringExtra("str5");
        String f = intent.getStringExtra("str6");


        tv_username.setText("链 表:"+a);
        tv_password.setText("添加数字5："+b);
        tv_delect.setText("删除数字4： "+c);
        tv_xiugai.setText("修改数字5为6："+d);
        tv_paixu.setText("排 序："+e);
        tv_daozhi.setText("倒 置："+f);


    }
}